<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
            background-color: #f8f8f8;
        }
        .no_login{
            padding-top: 150px;
        }
        .no_login p {
            text-align: center;
        }
        .login_btn {
            padding:9px 20px;
            text-align: center;
            color: #fff;
            border-radius: 2px;
            background-color: #e62442;
            margin-top: 10px;
        }
    </style>
</head>
<body>
    <div class="no_login">
        <p>登录后查看</p>
        <p><button class="login_btn" onclick="fnToLogin();" tapmode>立即登录</button></p>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function(){
        api.addEventListener({
            name: 'loginEvent'
        }, function(ret, err) {
            if (ret) {
                api.closeFrame();
            } 
        });

    };

    function fnToLogin() {
        api.openWin({
            name: 'login',
            url: './login.html',
        });
    }
</script>
</html>